package com.market.plus.core.dto;

import java.util.List;

import com.googlecode.simpleobjectassembler.annotation.EntityDto;

@EntityDto(id = "id")
public class TribeDto {

   private Long id;

   private String name;

   private String description;

   private String tribeGUID;

   private AvatarDto avatar;

   private List<NewsDto> news;

   public Long getId() {
      return id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public String getName() {
      return name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getTribeGUID() {
      return tribeGUID;
   }

   public void setTribeGUID(String tribeGUID) {
      this.tribeGUID = tribeGUID;
   }

   public List<NewsDto> getNews() {
      return news;
   }

   public void setNews(List<NewsDto> news) {
      this.news = news;
   }

   public AvatarDto getAvatar() {
      return avatar;
   }

   public void setAvatar(AvatarDto avatar) {
      this.avatar = avatar;
   }

   public String getDescription() {
      return description;
   }

   public void setDescription(String description) {
      this.description = description;
   }

   @Override
   public boolean equals(Object obj) {
      TribeDto propertyCompare = (TribeDto) obj;
      if (this.getId().longValue() == propertyCompare.getId().longValue()) {
         return true;
      }
      return false;
   }
}
